<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
   function Star(uname,age) {
    this.uname = uname;
    this.age = age;
   }
//  console.log( new Star('刘德华',53));
//  console.log( new Star('黎明',55));
//  console.log( new Star('张学友',56));
//  console.log( new Star('郭富城',54));


   Star.address='杭州'  
   console.log(Star);
   Star.sing=function(){
    console.log('我是静态成员方法');
   }
   Star.sing()
   console.log(Star.address);
 // 中午 创建一个构造函数 Goods 手机品牌 小米 苹果 华为 魅族 oppo vivo uname price

//  function Goods (uname,price){
//   this.uname=uname
//   this.price=<price>                                                                           </price>
//  }

//  console.log(new Goods('小米',3000));
//  console.log(new Goods('苹果',8000));
//  console.log(new Goods('华为',10000));
//  const mz=new Goods('魅族',3500)
//  console.log(mz);
//  console.log(new Goods('oppo',5000));
//  console.log(new Goods('vivo',4000));

  </script>
</body>

</html>